home *** CD-ROM | disk | FTP | other *** search
/ Champak 114 / Vol 114.iso / games / ophel001.swf / scripts / DefineButton2_987 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2010-08-12  |  976 b   |  41 lines

  1. on(release){
  2.    set("/Variables:VaVers01","ScCroix");
  3.    set("/Variables:VaVers02","AbeiLoin1");
  4.    set("/Variables:Colonne",1);
  5.    if(eval("/Variables:PositionPerso") eq "Auto")
  6.    {
  7.       tellTarget(Gregor)
  8.       {
  9.          gotoAndStop("180Gauche");
  10.          play();
  11.       }
  12.       if(eval("/Variables:PersoPres") == 2)
  13.       {
  14.          set("/Variables:VaVers02","AbeiLoin2");
  15.          tellTarget(Prescott)
  16.          {
  17.             gotoAndStop("180Gauche");
  18.             play();
  19.          }
  20.       }
  21.    }
  22.    else if(eval("/Variables:PositionPerso") eq "Fontaine")
  23.    {
  24.       set("/Variables:PositionPerso","Auto");
  25.       tellTarget(Gregor)
  26.       {
  27.          gotoAndStop("MarcheDroite");
  28.          play();
  29.       }
  30.       if(eval("/Variables:PersoPres") == 2)
  31.       {
  32.          set("/Variables:VaVers02","AbeiLoin2");
  33.          tellTarget(Prescott)
  34.          {
  35.             gotoAndStop("MarcheDroite");
  36.             play();
  37.          }
  38.       }
  39.    }
  40. }
  41.